class UserVo {
  int id;
  String  profile = null;
  String userName = null;
  String  signature = null;
  bool gender = null;
  String currentAddress = null;
  bool isDeleted = false;

  UserVo(this.id, this.profile, this.userName, this.signature, this.gender,
      this.currentAddress, this.isDeleted);

  UserVo.test(): id = 1, profile = "https://profile-avatar.csdnimg.cn/6bdbcb329ccf4e478eb23b5c48d89d5c_wzahd.jpg!1", userName = "用户名",
  signature = "测试签名", gender = true, currentAddress = "中国", isDeleted = false;


  factory UserVo.fromJson(Map<String, dynamic> source) {
    return UserVo(
        source['id'],
        source['profile'],
        source['userName'],
        source['signature'],
        source['gender'],
        source['currentAddress'],
        source['isDeleted']
    );
  }

  @override
  String toString() {
    return 'UserVo{id: $id, profile: $profile, userName: $userName, signature: $signature, gender: $gender, currentAddress: $currentAddress, isDeleted: $isDeleted}';
  }
}